#define _CRT_SECURE_NO_WARNINGS 1
#include "栈.h"
int main()
{
	Stack s1;
	StackInit(&s1);
	StackPush(&s1, 1);
	StackPush(&s1, 3);
	StackPush(&s1, 5);
	StackPush(&s1, 7);
	StackPush(&s1, 9);
	StackPop(&s1);
	int i = StackTop(&s1);
	int j= StackSize(&s1);
	int k = StackEmpty(&s1);
	printf("%d %d %d\n", i, j, k);
	while (!StackEmpty(&s1))
	{
		printf("%d ", StackTop(&s1));
		s1._top--;
	}
	StackDestroy(&s1);
	return 0;
}